#!/bin/bash

python ./xBlog/manage.py makemigrations

python ./xBlog/manage.py migrate


if [[ !? -ne 0 ]];
then
    exit 2
fi

# cd xBlog
# uwsgi --http-socket :8000 --threads 10 --module xBlog.wsgi

uwsgi -i uwsgi.ini